home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Leonardo the Inventor
/
Leonardo The Inventor (93026)(Broderbund)(Riverdeep)(2004).iso
/
LEOWINMV
/
SHARED.DIR
/
03076_Script_GET CATEGORY-INVENTION HANDLERS
< prev
next >
Wrap
Text File
|
1996-04-01
|
2KB
|
34 lines
-- -----------------------------------------------------------
-- Handler getCategoryFromInventionName returns the category
-- of the given invention.
on getCategoryFromInventionName whichInvention
if ("helicopter landinggear parachute Wing" contains whichInvention) then return "Flight"
else if ("BellTower drums Viola Woodwind" contains whichInvention) then return "Music"
else if ("WalkingBuoys diving lifepreserver paddleboat Snorkel" contains whichInvention) then return "Water"
else if ("BridgeCanal drawbridge fortress dredger" contains whichInvention) then return "Civil"
else if ("Cannon Crossbow Tank Walls" contains whichInvention) then return "Weapons"
end
-- -----------------------------------------------------------
-- Handler getCategoryFromMonaLisaMovieName returns the category
-- of the given mona list movie.
on getCategoryFromMonaLisaMovieName whichMovie
if (whichMovie = "ML_Fligh.DIR") then return "Flight"
else if (whichMovie = "ML_Music.DIR") then return "Music"
else if (whichMovie = "ML_Water.DIR") then return "Water"
else if (whichMovie = "ML_Civil.DIR") then return "Civil"
else if (whichMovie = "ML_Weapo.DIR") then return "Weapons"
end
-- -----------------------------------------------------------
-- Handler getInventionMovieName returns the name of the movie
-- of the given invention.
on getInventionMovieName whichInvention
put "I_" & char 1 to 6 of whichInvention into tempResult
return tempResult & ".DIR"
end